package com.testPlugin;

import android.content.Context;
import android.util.Log;
import android.webkit.WebView;
import android.widget.Toast;

public class TestPlugin {
	Context mContext;
	public TestPlugin(Context mContext){
		this.mContext = mContext;
	}
	public void log(WebView webView, String callback, String content){
		Toast.makeText(mContext, "Chuc mung, toi da hieu cach plugin lam viec", Toast.LENGTH_LONG).show();
		Log.v("TienNT", "javascript: window.plugin." + callback + "('" + content + "');");
		webView.loadUrl("javascript: window.plugin." + callback + "('" + content + "');");
	}
}
